package com.SmartCare.service.role;

import com.SmartCare.common.Result;
import com.SmartCare.common.vo.role.ElderRelaVo;
import com.SmartCare.pojo.role.UserRelationship;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 用户老人关系表 服务类
 */
public interface UserRelationshipService extends IService<UserRelationship> {
    /**
     * 获取家属与老人的绑定关系
     */
    List<ElderRelaVo> getElderIds(Long userId);

    /**
     * 添加绑定老人信息
     */
    Result addFamilyInfo(Long elderlyId, Long familyId, String relationship);
}
